package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZQW
 */
public class Herbalprescription extends Model<Herbalprescription> {

private static final long serialVersionUID=1L;

    /**
     * ID主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 病历ID
     */
    @TableField("MedicalID")
    private Integer MedicalID;

    /**
     * 挂号ID
     */
    @TableField("RegistID")
    private Integer RegistID;

    /**
     * 开立医生ID
     */
    @TableField("UserID")
    private Integer UserID;

    /**
     * 处方名称
     */
    @TableField("PrescriptionName")
    private String PrescriptionName;

    /**
     * 开立时间
     */
    @TableField("CreationTime")
    private Date CreationTime;

    /**
     * 处方类型 水煎煮/酒泡/打粉/制丸/装胶囊等
     */
    @TableField("PrescriptioType")
    private String PrescriptioType;

    /**
     * 付数
     */
    @TableField("PayNumber")
    private Integer PayNumber;

    /**
     * 频次
     */
    @TableField("Frequency")
    private String Frequency;

    /**
     * 用法 内服/外用
     */
    @TableField("DrugsUsage")
    private String DrugsUsage;

    /**
     * 治法
     */
    @TableField("Therapy")
    private String Therapy;

    /**
     * 治法详细
     */
    @TableField("Detailed")
    private String Detailed;

    /**
     * 医嘱
     */
    @TableField("Advice")
    private String Advice;

    /**
     * 状态
     */
    @TableField("State")
    private Integer State;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMedicalID() {
        return MedicalID;
    }

    public void setMedicalID(Integer MedicalID) {
        this.MedicalID = MedicalID;
    }

    public Integer getRegistID() {
        return RegistID;
    }

    public void setRegistID(Integer RegistID) {
        this.RegistID = RegistID;
    }

    public Integer getUserID() {
        return UserID;
    }

    public void setUserID(Integer UserID) {
        this.UserID = UserID;
    }

    public String getPrescriptionName() {
        return PrescriptionName;
    }

    public void setPrescriptionName(String PrescriptionName) {
        this.PrescriptionName = PrescriptionName;
    }

    public Date getCreationTime() {
        return CreationTime;
    }

    public void setCreationTime(Date CreationTime) {
        this.CreationTime = CreationTime;
    }

    public String getPrescriptioType() {
        return PrescriptioType;
    }

    public void setPrescriptioType(String PrescriptioType) {
        this.PrescriptioType = PrescriptioType;
    }

    public Integer getPayNumber() {
        return PayNumber;
    }

    public void setPayNumber(Integer PayNumber) {
        this.PayNumber = PayNumber;
    }

    public String getFrequency() {
        return Frequency;
    }

    public void setFrequency(String Frequency) {
        this.Frequency = Frequency;
    }

    public String getDrugsUsage() {
        return DrugsUsage;
    }

    public void setDrugsUsage(String DrugsUsage) {
        this.DrugsUsage = DrugsUsage;
    }

    public String getTherapy() {
        return Therapy;
    }

    public void setTherapy(String Therapy) {
        this.Therapy = Therapy;
    }

    public String getDetailed() {
        return Detailed;
    }

    public void setDetailed(String Detailed) {
        this.Detailed = Detailed;
    }

    public String getAdvice() {
        return Advice;
    }

    public void setAdvice(String Advice) {
        this.Advice = Advice;
    }

    public Integer getState() {
        return State;
    }

    public void setState(Integer State) {
        this.State = State;
    }

    public static final String ID = "ID";

    public static final String MEDICALID = "MedicalID";

    public static final String REGISTID = "RegistID";

    public static final String USERID = "UserID";

    public static final String PRESCRIPTIONNAME = "PrescriptionName";

    public static final String CREATIONTIME = "CreationTime";

    public static final String PRESCRIPTIOTYPE = "PrescriptioType";

    public static final String PAYNUMBER = "PayNumber";

    public static final String FREQUENCY = "Frequency";

    public static final String DRUGSUSAGE = "DrugsUsage";

    public static final String THERAPY = "Therapy";

    public static final String DETAILED = "Detailed";

    public static final String ADVICE = "Advice";

    public static final String STATE = "State";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Herbalprescription{" +
        "id=" + id +
        ", MedicalID=" + MedicalID +
        ", RegistID=" + RegistID +
        ", UserID=" + UserID +
        ", PrescriptionName=" + PrescriptionName +
        ", CreationTime=" + CreationTime +
        ", PrescriptioType=" + PrescriptioType +
        ", PayNumber=" + PayNumber +
        ", Frequency=" + Frequency +
        ", DrugsUsage=" + DrugsUsage +
        ", Therapy=" + Therapy +
        ", Detailed=" + Detailed +
        ", Advice=" + Advice +
        ", State=" + State +
        "}";
    }
}
